derivative of ln(x) by implicit differentiation